package com.heima.ec_platform;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        ArrayList<Product> list = new ArrayList<>();
        ECommerceSystem ec = new ECommerceSystem(list);
        Product p1 = new Product("手机", 2500);
        Product p2 = new Product("电视", 4000);
        ec.addProduct(p1);
        ec.addProduct(p2);
        ec.displayProducts();
        Member m1 = new Member("张三", "123@163.com");
        m1.purchase(p1);
    }
}
